package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CasePicMapper;
import com.ruoyi.system.domain.CasePic;
import com.ruoyi.system.service.ICasePicService;

/**
 * 案件图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-07
 */
@Service
public class CasePicServiceImpl implements ICasePicService 
{
    @Autowired
    private CasePicMapper casePicMapper;

    /**
     * 查询案件图片
     * 
     * @param id 案件图片ID
     * @return 案件图片
     */
    @Override
    public CasePic selectCasePicById(Long id)
    {
        return casePicMapper.selectCasePicById(id);
    }

    /**
     * 查询案件图片列表
     * 
     * @param casePic 案件图片
     * @return 案件图片
     */
    @Override
    public List<CasePic> selectCasePicList(CasePic casePic)
    {
        return casePicMapper.selectCasePicList(casePic);
    }

    /**
     * 新增案件图片
     * 
     * @param casePic 案件图片
     * @return 结果
     */
    @Override
    public int insertCasePic(CasePic casePic)
    {
        return casePicMapper.insertCasePic(casePic);
    }

    /**
     * 修改案件图片
     * 
     * @param casePic 案件图片
     * @return 结果
     */
    @Override
    public int updateCasePic(CasePic casePic)
    {
        return casePicMapper.updateCasePic(casePic);
    }

    /**
     * 批量删除案件图片
     * 
     * @param ids 需要删除的案件图片ID
     * @return 结果
     */
    @Override
    public int deleteCasePicByIds(Long[] ids)
    {
        return casePicMapper.deleteCasePicByIds(ids);
    }

    /**
     * 删除案件图片信息
     * 
     * @param id 案件图片ID
     * @return 结果
     */
    @Override
    public int deleteCasePicById(Long id)
    {
        return casePicMapper.deleteCasePicById(id);
    }
}
